import request from '@/utils/request'
import { prefilter, convertDateToString } from '@/utils'
/**
 * 综治机构
 */
// 查询所有综治机构list
export function getGovernOrganList (params = {}) {
  prefilter(params)
  return request({
    url: '/govern-service/governOrgan/list',
    method: 'get',
    params
  })
}

// 新增综治机构
export function addGovernOrgan (data = {}) {
  prefilter(data)
  data.deleteStatus = 'N'// 表示状态为 未删除
  return request({
    url: '/govern-service/governOrgan/add',
    method: 'post',
    data
  })
}

// 查询综治机构某一项的详情
export function getGovernOrganDetail (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governOrgan/detail',
    method: 'post',
    data
  })
}

// 修改综治机构某一项的详情
export function updateGovernOrganDetail (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governOrgan/update',
    method: 'post',
    data
  })
}

// 删除综治机构某一项
export function deleteGovernOrganItem (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governOrgan/delete',
    method: 'post',
    data
  })
}

// 批量删除综治机构
export function deleteGovernOrganBatch (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governOrgan/deleteBatch',
    method: 'post',
    data
  })
}

// 导出综治机构
export function exportGovernOrgan (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governOrgan/export',
    method: 'post',
    data,
    responseType: 'arraybuffer'
  })
}

/**
 * 综治队伍
 */
// 查询所有综治队伍list
export function getGovernOrganPersonList (params = {}) {
  prefilter(params)
  return request({
    url: '/govern-service/governOrganPerson/list',
    method: 'get',
    params
  })
}

// 查询综治队伍某一项的详情
export function getGovernOrganPersonDetail (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governOrganPerson/detail',
    method: 'post',
    data
  })
}

// 新增综治队伍人员
export function addGovernOrganPerson (data = {}) {
  prefilter(data)
  data.deleteStatus = 'N'// 表示状态为 未删除
  return request({
    url: '/govern-service/governOrganPerson/add',
    method: 'post',
    data
  })
}

// 修改综治队伍某一项的详情
export function updateGovernOrganPersonDetail (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governOrganPerson/update',
    method: 'post',
    data
  })
}

// 删除综治队伍某一项
export function deleteGovernOrganPersonItem (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governOrganPerson/delete',
    method: 'post',
    data
  })
}

// 批量删除综治队伍
export function deleteGovernOrganPersonBatch (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governOrganPerson/deleteBatch',
    method: 'post',
    data
  })
}

// 导出综治队伍
export function exportGovernOrganPerson (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governOrganPerson/export',
    method: 'post',
    data,
    responseType: 'arraybuffer'
  })
}

/**
 * 群防群治组织
 */
// 查看群防群治组织列表list
export function getGovernGroupList (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governGroup/list',
    method: 'post',
    data
  })
}

// 增加群防群治组织
export function addGovernGroup (data = {}) {
  prefilter(data)
  data.deleteStatus = 'N'// 表示状态为 未删除
  return request({
    url: '/govern-service/governGroup/add',
    method: 'post',
    data
  })
}

// 查看群防群治组织详情
export function getGovernGroupDetail (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governGroup/detail',
    method: 'post',
    data
  })
}

// 修改群防群治组织详情
export function updateGovernGroupDetail (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governGroup/update',
    method: 'post',
    data
  })
}

// 删除群防群治组织
export function deleteGovernGroup (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governGroup/delete',
    method: 'post',
    data
  })
}

// 批量删除群防群治组织
export function deleteGovernGroupBatch (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governGroup/deleteBatch',
    method: 'post',
    data
  })
}

// ---------------------------------------------
/**
 * 群防群治队伍
 */
// 查看群防群治队伍列表list
export function getGovernGroupPersonList (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governGroupPerson/list',
    method: 'post',
    data
  })
}

// 增加群防群治队伍
export function addGovernGroupPerson (data = {}) {
  prefilter(data)
  data.deleteStatus = 'N'// 表示状态为 未删除
  return request({
    url: '/govern-service/governGroupPerson/add',
    method: 'post',
    data
  })
}

// 查看群防群治队伍详情
export function getGovernGroupPersonDetail (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governGroupPerson/detail',
    method: 'post',
    data
  })
}

// 修改群防群治队伍详情
export function updateGovernGroupPersonDetail (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governGroupPerson/update',
    method: 'post',
    data
  })
}

// 删除群防群治队伍
export function deleteGovernGroupPerson (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governGroupPerson/delete',
    method: 'post',
    data
  })
}

// 批量删除群防群治队伍
export function deleteGovernGroupPersonBatch (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governGroupPerson/deleteBatch',
    method: 'post',
    data
  })
}

/**
 * 综治中心
 */
// 查询所有综治中心list
export function getgovernCentreList (params = {}) {
  prefilter(params)
  return request({
    url: '/govern-service/governCentre/list',
    method: 'get',
    params
  })
}

// 新增综治中心
export function addgovernCentre (data = {}) {
  prefilter(data)
  data.deleteStatus = 'N'// 表示状态为 未删除
  return request({
    url: '/govern-service/governCentre/add',
    method: 'post',
    data
  })
}

// 查看综治中心详情
export function getgovernCentreDetail (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governCentre/detail',
    method: 'post',
    data
  })
}

// 修改综治中心详情
export function updategovernCentreDetail (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governCentre/update',
    method: 'post',
    data
  })
}

// 删除综治中心
export function deletegovernCentre (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governCentre/delete',
    method: 'post',
    data
  })
}

// 批量删除综治中心
export function deletegovernCentreBatch (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governCentre/deleteBatch',
    method: 'post',
    data
  })
}

/**
 * 综治视联网信息中心
 */
// 查询所有综治视联网信息中心list
export function getgovernVideoCentreList (params = {}) {
  prefilter(params)
  return request({
    url: '/govern-service/governVideoNetworkingCentre/list',
    method: 'get',
    params
  })
}

// 新增综治视联网信息中心
export function addgovernVideoCentre (data = {}) {
  prefilter(data)
  data.deleteStatus = 'N'// 表示状态为 未删除
  return request({
    url: '/govern-service/governVideoNetworkingCentre/add',
    method: 'post',
    data
  })
}

// 查看综治视联网信息中心详情
export function getgovernVideoCentreDetail (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governVideoNetworkingCentre/detail',
    method: 'post',
    data
  })
}

// 修改综治视联网信息中心详情
export function updategovernVideoCentreDetail (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governVideoNetworkingCentre/update',
    method: 'post',
    data
  })
}

// 删除综治视联网信息中心
export function deletegovernVideoCentre (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governVideoNetworkingCentre/delete',
    method: 'post',
    data
  })
}

// 批量删除综治视联网信息中心
export function deletegovernVideoCentreBatch (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governVideoNetworkingCentre/deleteBatch',
    method: 'post',
    data
  })
}

/**
 * 网格化
 */
// 查询所有网格化list
export function getgovernGridList (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governGrid/list',
    method: 'post',
    data
  })
}

// 新增网格
export function addgovernGrid (data = {}) {
  prefilter(data)
  data.deleteStatus = 'N'// 表示状态为 未删除
  return request({
    url: '/govern-service/governGrid/add',
    method: 'post',
    data
  })
}

// 查看网格详情
export function getgovernGridDetail (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governGrid/detail',
    method: 'post',
    data
  })
}

// 修改网格详情
export function updategovernGridDetail (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governGrid/update',
    method: 'post',
    data
  })
}

// 删除网格
export function deletegovernGrid (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governGrid/delete',
    method: 'post',
    data
  })
}

// 批量删除网格
export function deletegovernGridBatch (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governGrid/deleteBatch',
    method: 'post',
    data
  })
}

/**
 * 楼栋长
 */
// 查询所有楼栋长list
export function getGovernBuildingLeaderList (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governBuildingLeader/list',
    method: 'post',
    data
  })
}

// 新增楼栋长
export function addGovernBuildingLeader (data = {}) {
  prefilter(data)
  data.deleteStatus = 'N'// 表示状态为 未删除
  return request({
    url: '/govern-service/governBuildingLeader/add',
    method: 'post',
    data
  })
}

// 查看楼栋长详情
export function getGovernBuildingLeaderDetail (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governBuildingLeader/detail',
    method: 'post',
    data
  })
}

// 修改楼栋长详情
export function updateGovernBuildingLeaderDetail (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governBuildingLeader/update',
    method: 'post',
    data
  })
}

// 删除楼栋长
export function deleteGovernBuildingLeader (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governBuildingLeader/delete',
    method: 'post',
    data
  })
}

// 批量删除楼栋长
export function deleteGovernBuildingLeaderBatch (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governBuildingLeader/deleteBatch',
    method: 'post',
    data
  })
}

/**
 * 综治领导责任制
 */
// 查询所有综治领导责任制信息list
export function getGovernLeaderDutyList (params = {}) {
  prefilter(params)
  return request({
    url: '/govern-service/governLeaderDuty/list',
    method: 'get',
    params
  })
}

// 新增综治领导责任制信息
export function addGovernLeaderDuty (data = {}) {
  prefilter(data)
  data.deleteStatus = 'N'// 表示状态为 未删除
  return request({
    url: '/govern-service/governLeaderDuty/add',
    method: 'post',
    data
  })
}

// 查看综治领导责任制信息详情
export function getGovernLeaderDutyDetail (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governLeaderDuty/detail',
    method: 'post',
    data
  })
}

// 修改综治领导责任制信息详情
export function updateGovernLeaderDutyDetail (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governLeaderDuty/update',
    method: 'post',
    data
  })
}

// 删除综治领导责任制信息
export function deleteGovernLeaderDuty (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governLeaderDuty/delete',
    method: 'post',
    data
  })
}

// 批量删除综治领导责任制信息
export function deleteGovernLeaderDutyBatch (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governLeaderDuty/deleteBatch',
    method: 'post',
    data
  })
}

/**
 * 重特大案（事）件
 */
// 查询所有重特大案（事）件信息list
export function getGovernImportantCaseList (params = {}) {
  if (params.occurDate) {
    params.caseDateBegin = params.occurDate[0]
    params.caseDateEnd = params.occurDate[1]
  }
  delete params.occurDate
  prefilter(params)
  convertDateToString(params)
  return request({
    url: '/govern-service/governImportantCase/list',
    method: 'get',
    params
  })
}

// 新增重特大案（事）件信息
export function addGovernImportantCase (data = {}) {
  prefilter(data)
  data.deleteStatus = 'N'// 表示状态为 未删除
  return request({
    url: '/govern-service/governImportantCase/add',
    method: 'post',
    data
  })
}

// 查看重特大案（事）件信息详情
export function getGovernImportantCaseDetail (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governImportantCase/detail',
    method: 'post',
    data
  })
}

// 修改重特大案（事）件信息详情
export function updateGovernImportantCaseDetail (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governImportantCase/update',
    method: 'post',
    data
  })
}

// 删除重特大案（事）件信息
export function deleteGovernImportantCase (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governImportantCase/delete',
    method: 'post',
    data
  })
}

// 批量删除重特大案（事）件信息
export function deleteGovernImportantCaseBatch (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governImportantCase/deleteBatch',
    method: 'post',
    data
  })
}

/**
 * 实有人口
 */
// 查询所有人口列表
export function getGovernPopulationList (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governPopulation/list',
    method: 'post',
    data
  })
}

// 增加实有人口
export function addGovernPopulation (data = {}) {
  prefilter(data)
  data.deleteStatus = 'N'// 表示状态为 未删除
  return request({
    url: '/govern-service/governPopulation/add',
    method: 'post',
    data
  })
}

// 查看实有人口详情
export function getGovernPopulationDetail (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governPopulation/detail',
    method: 'post',
    data
  })
}

// 修改实有人口详情
export function updateGovernPopulationDetail (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governPopulation/update',
    method: 'post',
    data
  })
}

// 删除实有人口
export function deleteGovernPopulation (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governPopulation/delete',
    method: 'post',
    data
  })
}

// 批量删除实有人口
export function deleteGovernPopulationBatch (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governPopulation/deleteBatch',
    method: 'post',
    data
  })
}

/**
 * 境外人口
 */
// 查询所有境外人口列表
export function getPopulationForeignerList (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governPopulationForeigner/list',
    method: 'post',
    data
  })
}

// 增加境外人口
export function addPopulationForeigner (data = {}) {
  prefilter(data)
  data.deleteStatus = 'N'// 表示状态为 未删除
  return request({
    url: '/govern-service/governPopulationForeigner/add',
    method: 'post',
    data
  })
}

// 查看境外人口详情
export function getPopulationForeignerDetail (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governPopulationForeigner/detail',
    method: 'post',
    data
  })
}

// 修改境外人口详情
export function updatePopulationForeignerDetail (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governPopulationForeigner/update',
    method: 'post',
    data
  })
}

// 删除境外人口
export function deletePopulationForeigner (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governPopulationForeigner/delete',
    method: 'post',
    data
  })
}

// 批量删除境外人口
export function deletePopulationForeignerBatch (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governPopulationForeigner/deleteBatch',
    method: 'post',
    data
  })
}

/**
 * 房屋管理
 */
// 查询房屋管理列表
export function getGovernHouseList (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governHouse/list',
    method: 'post',
    data
  })
}

// 增加房屋管理
export function addGovernHouse (data = {}) {
  prefilter(data)
  data.deleteStatus = 'N'// 表示状态为 未删除
  return request({
    url: '/govern-service/governHouse/add',
    method: 'post',
    data
  })
}

// 查看房屋管理详情
export function getGovernHouseDetail (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governHouse/detail',
    method: 'post',
    data
  })
}

// 修改房屋管理详情
export function updateGovernHouseDetail (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governHouse/update',
    method: 'post',
    data
  })
}

// 删除房屋管理
export function deleteGovernHouse (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governHouse/delete',
    method: 'post',
    data
  })
}

// 批量删除房屋管理
export function deleteGovernHouseBatch (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governHouse/deleteBatch',
    method: 'post',
    data
  })
}

// ***********************************************************
/**
 * 特殊人群
 */
// 查询特殊人群列表
export function getPopulationSpecialList (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governPopulationSpecial/list',
    method: 'post',
    data
  })
}

// 增加特殊人群
export function addPopulationSpecial (data = {}) {
  prefilter(data)
  data.deleteStatus = 'N'// 表示状态为 未删除
  return request({
    url: '/govern-service/governPopulationSpecial/add',
    method: 'post',
    data
  })
}

// 查看特殊人群详情
export function getPopulationSpecialDetail (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governPopulationSpecial/detail',
    method: 'post',
    data
  })
}

// 修改特殊人群详情
export function updatePopulationSpecialDetail (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governPopulationSpecial/update',
    method: 'post',
    data
  })
}

// 删除特殊人群
export function deletePopulationSpecial (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governPopulationSpecial/delete',
    method: 'post',
    data
  })
}

// 批量删除特殊人群
export function deletePopulationSpecialBatch (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governPopulationSpecial/deleteBatch',
    method: 'post',
    data
  })
}

/**
 * 两新组织
 */
// 查询两新组织列表
export function getTwoNewOrgList (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governNewOrganization/list',
    method: 'post',
    data
  })
}

// 增加两新组织
export function addTwoNewOrg (data = {}) {
  prefilter(data)
  data.deleteStatus = 'N'// 表示状态为 未删除
  return request({
    url: '/govern-service/governNewOrganization/add',
    method: 'post',
    data
  })
}

// 查看两新组织详情
export function getTwoNewOrgDetail (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governNewOrganization/detail',
    method: 'post',
    data
  })
}

// 修改两新组织详情
export function updateTwoNewOrgDetail (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governNewOrganization/update',
    method: 'post',
    data
  })
}

// 删除两新组织
export function deleteTwoNewOrg (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governNewOrganization/delete',
    method: 'post',
    data
  })
}

// 批量删除两新组织
export function deleteTwoNewOrgBatch (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governNewOrganization/deleteBatch',
    method: 'post',
    data
  })
}

/**
 * 重点地区排查整治
 */
// 查询重点地区排查整治列表
export function getGovernKeyAreaList (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governKeyArea/list',
    method: 'post',
    data
  })
}

// 增加重点地区排查整治
export function addGovernKeyArea (data = {}) {
  prefilter(data)
  data.deleteStatus = 'N'// 表示状态为 未删除
  return request({
    url: '/govern-service/governKeyArea/add',
    method: 'post',
    data
  })
}

// 查看重点地区排查整治详情
export function getGovernKeyAreaDetail (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governKeyArea/detail',
    method: 'post',
    data
  })
}

// 修改重点地区排查整治详情
export function updateGovernKeyAreaDetail (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governKeyArea/update',
    method: 'post',
    data
  })
}

// 删除重点地区排查整治
export function deleteGovernKeyArea (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governKeyArea/delete',
    method: 'post',
    data
  })
}

// 批量删除重点地区排查整治
export function deleteGovernKeyAreaBatch (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governKeyArea/deleteBatch',
    method: 'post',
    data
  })
}

/**
 * 命案基本信息
 */
// 查询命案基本信息列表
export function getGovernMurderCaseList (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governMurderCase/list',
    method: 'post',
    data
  })
}

// 增加命案基本信息
export function addGovernMurderCase (data = {}) {
  prefilter(data)
  data.deleteStatus = 'N'// 表示状态为 未删除
  return request({
    url: '/govern-service/governMurderCase/add',
    method: 'post',
    data
  })
}

// 查看命案基本信息详情
export function getGovernMurderCaseDetail (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governMurderCase/detail',
    method: 'post',
    data
  })
}

// 修改命案基本信息详情
export function updateGovernMurderCaseDetail (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governMurderCase/update',
    method: 'post',
    data
  })
}

// 删除命案基本信息
export function deleteMurderCase (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governMurderCase/delete',
    method: 'post',
    data
  })
}

// 批量删除命案基本信息
export function deleteMurderCaseBatch (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governMurderCase/deleteBatch',
    method: 'post',
    data
  })
}

/**
 * 命案犯罪嫌疑人受害人
 */
// 查询命案犯罪嫌疑人受害人列表
export function getSuspectVictimList (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governMurderSuspectVictim/list',
    method: 'post',
    data
  })
}

// 增加命案犯罪嫌疑人受害人
export function addSuspectVictim (data = {}) {
  prefilter(data)
  data.deleteStatus = 'N'// 表示状态为 未删除
  return request({
    url: '/govern-service/governMurderSuspectVictim/add',
    method: 'post',
    data
  })
}

// 查看命案犯罪嫌疑人受害人详情
export function getSuspectVictimDetail (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governMurderSuspectVictim/detail',
    method: 'post',
    data
  })
}

// 修改命案犯罪嫌疑人受害人详情
export function updateSuspectVictimDetail (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governMurderSuspectVictim/update',
    method: 'post',
    data
  })
}

// 删除命案犯罪嫌疑人受害人
export function deleteSuspectVictim (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governMurderSuspectVictim/delete',
    method: 'post',
    data
  })
}

// 批量删除命案犯罪嫌疑人受害人
export function deleteSuspectVictimBatch (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governMurderSuspectVictim/deleteBatch',
    method: 'post',
    data
  })
}

/**
 * 寄递物流安全管理
 */
// 查询寄递物流安全管理列表
export function getGovernExpressList (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governExpress/list',
    method: 'post',
    data
  })
}

// 增加寄递物流安全管理
export function addGovernExpress (data = {}) {
  prefilter(data)
  data.deleteStatus = 'N'// 表示状态为 未删除
  return request({
    url: '/govern-service/governExpress/add',
    method: 'post',
    data
  })
}

// 查看寄递物流安全管理详情
export function getGovernExpressDetail (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governExpress/detail',
    method: 'post',
    data
  })
}

// 修改寄递物流安全管理详情
export function updateGovernExpressDetail (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governExpress/update',
    method: 'post',
    data
  })
}

// 删除寄递物流安全管理
export function deleteGovernExpress (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governExpress/delete',
    method: 'post',
    data
  })
}

// 批量删除寄递物流安全管理
export function deleteGovernExpressBatch (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governExpress/deleteBatch',
    method: 'post',
    data
  })
}

/**
 * 矛盾纠纷
 */
// 查询矛盾纠纷list
export function getGovernDisputeList (data = {}) {
  if (data.occurDate) {
    data.happenDateBegin = data.occurDate[0]
    data.happenDateEnd = data.occurDate[1]
  }
  delete data.occurDate
  prefilter(data)
  convertDateToString(data)
  return request({
    url: '/govern-service/governDispute/list',
    method: 'post',
    data
  })
}

// 新增矛盾纠纷
export function addGovernDispute (data = {}) {
  prefilter(data)
  data.deleteStatus = 'N'// 表示状态为 未删除
  return request({
    url: '/govern-service/governDispute/add',
    method: 'post',
    data
  })
}

// 查看矛盾纠纷详情
export function getGovernDisputeDetail (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governDispute/detail',
    method: 'post',
    data
  })
}

// 修改矛盾纠纷详情
export function updateGovernDisputeDetail (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governDispute/update',
    method: 'post',
    data
  })
}

// 删除矛盾纠纷
export function deleteGovernDispute (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governDispute/delete',
    method: 'post',
    data
  })
}

// 批量删除矛盾纠纷
export function deleteGovernDisputeBatch (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governDispute/deleteBatch',
    method: 'post',
    data
  })
}

/**
 * 学校
 */
// 查询学校list
export function getGovernSchoolList (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governSchool/list',
    method: 'post',
    data
  })
}

// 新增学校
export function addGovernSchool (data = {}) {
  prefilter(data)
  data.deleteStatus = 'N'// 表示状态为 未删除
  return request({
    url: '/govern-service/governSchool/add',
    method: 'post',
    data
  })
}

// 查看学校详情
export function getGovernSchoolDetail (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governSchool/detail',
    method: 'post',
    data
  })
}

// 修改学校详情
export function updateGovernSchoolDetail (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governSchool/update',
    method: 'post',
    data
  })
}

// 删除学校
export function deleteGovernSchool (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governSchool/delete',
    method: 'post',
    data
  })
}

// 批量删除学校
export function deleteGovernSchoolBatch (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governSchool/deleteBatch',
    method: 'post',
    data
  })
}

/**
 * 学校周边重点人员
 */
// 查询学校周边重点人员list
export function getGovernSchoolKeyPerList (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governSchoolKeyPersonnel/list',
    method: 'post',
    data
  })
}

// 新增学校周边重点人员
export function addGovernSchoolKeyPer (data = {}) {
  prefilter(data)
  data.deleteStatus = 'N'// 表示状态为 未删除
  return request({
    url: '/govern-service/governSchoolKeyPersonnel/add',
    method: 'post',
    data
  })
}

// 查看学校周边重点人员详情
export function getGovernSchoolKeyPerDetail (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governSchoolKeyPersonnel/detail',
    method: 'post',
    data
  })
}

// 修改学校周边重点人员详情
export function updateGovernSchoolKeyPerDetail (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governSchoolKeyPersonnel/update',
    method: 'post',
    data
  })
}

// 删除学校周边重点人员
export function deleteGovernSchoolKeyPer (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governSchoolKeyPersonnel/delete',
    method: 'post',
    data
  })
}

// 批量删除学校周边重点人员
export function deleteGovernSchoolKeyPerBatch (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governSchoolKeyPersonnel/deleteBatch',
    method: 'post',
    data
  })
}

/**
 * 安全案（事）件
 */
// 查询安全案（事）件list
export function getGovernSecurityEventList (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governSecurityEvent/list',
    method: 'post',
    data
  })
}

// 新增安全案（事）件
export function addGovernSecurityEvent (data = {}) {
  prefilter(data)
  data.deleteStatus = 'N'// 表示状态为 未删除
  return request({
    url: '/govern-service/governSecurityEvent/add',
    method: 'post',
    data
  })
}

// 查看安全案（事）件详情
export function getGovernSecurityEventDetail (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governSecurityEvent/detail',
    method: 'post',
    data
  })
}

// 修改安全案（事）件详情
export function updateGovernSecurityEventDetail (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governSecurityEvent/update',
    method: 'post',
    data
  })
}

// 删除安全案（事）件
export function deleteGovernSecurityEvent (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governSecurityEvent/delete',
    method: 'post',
    data
  })
}

// 批量删除安全案（事）件
export function deleteGovernSecurityEventBatch (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governSecurityEvent/deleteBatch',
    method: 'post',
    data
  })
}

/**
 * 护路护线
 */
// 查询护路护线list
export function getGovernLineList (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governLine/list',
    method: 'post',
    data
  })
}

// 新增护路护线
export function addGovernLine (data = {}) {
  prefilter(data)
  data.deleteStatus = 'N'// 表示状态为 未删除
  return request({
    url: '/govern-service/governLine/add',
    method: 'post',
    data
  })
}

// 查看护路护线详情
export function getGovernLineDetail (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governLine/detail',
    method: 'post',
    data
  })
}

// 修改护路护线详情
export function updateGovernLineDetail (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governLine/update',
    method: 'post',
    data
  })
}

// 删除护路护线
export function deleteGovernLine (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governLine/delete',
    method: 'post',
    data
  })
}

// 批量删除护路护线
export function deleteGovernLineBatch (data = {}) {
  prefilter(data)
  return request({
    url: '/govern-service/governLine/deleteBatch',
    method: 'post',
    data
  })
}
